package hcn.protocol.ods.casehistory;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @program: 20190427StandardEdition
 *
 * @description: 病历复印支付方式枚举
 *
 * @author: zhusm@bsoft.com.cn
 *
 * @create: 2019-06-21 13:32
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum BLPayConfigEnum {
    ONLINEPAYMENTS(0,"在线支付"),
    CASHONDELIVERY(1,"到付");

    private int code;
    private String description;

    public static final BLPayConfigEnum getDescription(int code){
        for (BLPayConfigEnum type : BLPayConfigEnum.values()){
            if (type.getCode()==code){
                return type;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
